package me.xiaoyan.java.chapter15.shopping;

public class Goods {
	int no;
	String name;
	double price;
	
	/**
	 * 赋值
	 * @param sn
	 * @param goodsName
	 * @param goodsPrice
	 */
	public void setValue(int sn,String goodsName,double goodsPrice){
		no = sn;
		name = goodsName;
		price = goodsPrice;
	}
	
	public void showInfo(){
		System.out.println("\t" + no + "\t" + name + "\t" + price);
	}
}
